package com.linghu.plugins.service.impl;

import com.gitee.starblues.bootstrap.PluginContextHolder;
import com.gitee.starblues.spring.environment.EnvironmentProvider;
import com.linghu.plugins.service.MainPlugins;
import org.springframework.stereotype.Service;

/**
 * @author linghu
 * @date 2024/5/8 10:09
 */
@Service
public class MainPluginsImpl implements MainPlugins {

    @Override
    public String value() {
        EnvironmentProvider environmentProvider =
                PluginContextHolder.getEnvironmentProvider();
        String value = environmentProvider.getString("basic-sdk.demo.value");
        return value;
    }
}
